import type {ExtractPropTypes,} from 'vue'
import {buildProps} from "@/utils";

export const devEllipsisTextProps = buildProps({
    // 是否在vue3 onMounted生命周期中调用
    onMounted: {
        type: Boolean,
        default: true
    },
    // 是否在vue3 onActivated生命周期中调用
    onActivated: {
        type: Boolean,
        default: false
    },
    text: {
        type: String,
        default: '',
    },
    lines: {
        type: Number,
        default: 1, // 默认一行
    },
    elTooltipAttrs:{
        type: Object,
        default:{}
    },
    // 当文本过长时,鼠标悬浮是否显示tooltip
    showTooltip: {
        type: Boolean,
        default: true,
    }
} as const)
export type DevEllipsisTextProps = ExtractPropTypes<typeof devEllipsisTextProps>
